import request from '@/utils/request'

// 查询群消息记录列表
export function listGroupMessage(query) {
  return request({
    url: '/message/groupMessage/list',
    method: 'get',
    params: query
  })
}

// 查询群消息记录详细
export function getGroupMessage(id) {
  return request({
    url: '/message/groupMessage/' + id,
    method: 'get'
  })
}

// 新增群消息记录
export function addGroupMessage(data) {
  return request({
    url: '/message/groupMessage',
    method: 'post',
    data: data
  })
}

// 修改群消息记录
export function updateGroupMessage(data) {
  return request({
    url: '/message/groupMessage',
    method: 'put',
    data: data
  })
}

// 删除群消息记录
export function delGroupMessage(id) {
  return request({
    url: '/message/groupMessage/' + id,
    method: 'delete'
  })
}
